

package com.wzl.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzl.dao.SysLogMapper;
import com.wzl.entity.SysLog;
import com.wzl.service.SysLogService;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements SysLogService{

    @Transactional(rollbackFor = Exception.class)
    @Override
    public int saveLog(SysLog sysLog) {
        return this.baseMapper.insert(sysLog);
    }
}
